<%@page language="java" pageEncoding="UTF-8"%>
<%@page import="com.shsh.safemanage.model.Role"%>
<%@page import="com.shsh.safemanage.action.UserAction"%>
<%@page import="java.util.HashSet"%>
<%@page import="java.util.Set"%>
<%@page import="com.shsh.safemanage.util.Util"%>
<%@page import="com.shsh.safemanage.util.Constants"%>
<%@page import="com.shsh.safemanage.model.User"%>
<%@page import="com.shsh.safemanage.model.Problem"%>
<%@page import="java.util.List"%>
<%@page import="com.shsh.safemanage.dao.DaoCreator"%>
<%@page import="com.shsh.safemanage.dao.ProblemDao"%>
<%@page import="com.shsh.safemanage.action.ActionCreator"%>
<%@page import="com.shsh.safemanage.action.BrowseProblemAction"%>

<%
session.removeAttribute(Constants.SESSION_ESCALATE_USER);

UserAction userAction = ActionCreator.createUserAction();
User user = (User) session.getAttribute(Constants.SESSION_USER);
Role role = userAction.getUserRole(user);
%>
<div class="hider" id="hider">
	<span>&nbsp;</span>
</div>
<div class="position">
	<img src="images/position2.jpg" style="padding: 7px 9px; float: left;" />当前位置：上海高桥分公司问题管理平台 &gt;&gt; 作业部问题整改监督
</div>
<div class="tt">作业部问题整改监督</div>
<div class="content">
<div class="apptab">
	<table width="100%" border="0" cellpadding="0" cellspacing="0"
			style="font-size: 12px; color: #000; line-height: 25px;">
		<tr>
			<td width="13" class="appbg">&nbsp;</td>
			<td width="97" class="appbg"><img src="images/trace.gif"
				style="vertical-align: middle;" />查询条件</td>
			<td width="554" class="appbg">&nbsp;</td>
			<td colspan="2" class="appbg">&nbsp;</td>
		</tr>
		<tr>
			<td width="13" height="40">&nbsp;</td>
			<td colspan="3" align="center">
				<span>日期区间：</span> <input type="text" id="dateStart"
					size="15"
					onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'dateStart\')||\'2050-12-31\'}'})" />-<input
					type="text" id="dateEnd" size="15"
					onfocus="WdatePicker({minDate:'#F{$dp.$D(\'dateEnd\')}',maxDate:'2050-12-31'})" />
			</td>
			<td width="14">&nbsp;</td>
		</tr>
		<tr>
			<td width="13" height="40">&nbsp;</td>
			<td colspan="3" style="text-align: center;">
			<%
			if ((role.getRoleType() & (Constants.ROLE_TYPE_BUZHANG | Constants.ROLE_TYPE_SHENGCHANFUBUZHANG | Constants.ROLE_TYPE_SHEBEIFUBUZHANG
					| Constants.ROLE_TYPE_ANQUANZONGJIAN)) > 0) {
			%>
			<a href="javascript:" id="banziButton"
				onclick="callJspProcess('<%=request.getContextPath()%>/remove_problemlist_date_process.jsp', {}); 
					loadPageSection('problems_tobe_processed_banzi_section.jsp', 'tobeProcessedDiv', {dateStart:getElementValueByID('dateStart'), dateEnd:getElementValueByID('dateEnd')}, true)"><img src="images/cha.gif" /></a>
			<%
			} else if ((role.getRoleType() & (Constants.ROLE_TYPE_ZHUANGZHIZHANG)) > 0) {
			%>
			<a href="javascript:" id="zhuangzhizButton"
				onclick="callJspProcess('<%=request.getContextPath()%>/remove_problemlist_date_process.jsp', {}); 
					loadPageSection('problems_tobe_processed_zhuangzhiz_section.jsp', 'tobeProcessedDiv', {dateStart:getElementValueByID('dateStart'), dateEnd:getElementValueByID('dateEnd')}, true)"><img src="images/cha.gif" /></a>
			<%
			} else {
			%>
			<a href="javascript:" id="generalButton"
				onclick="callJspProcess('<%=request.getContextPath()%>/remove_problemlist_date_process.jsp', {}); 
					loadPageSection('problems_tobe_processed_general_section.jsp', 'tobeProcessedDiv', {dateStart:getElementValueByID('dateStart'), dateEnd:getElementValueByID('dateEnd')}, true)"><img src="images/cha.gif" /></a>
			<%
			}
			%>
			</td>
			<td width="14">&nbsp;</td>
		</tr>
	</table>
</div>
<div id="tobeProcessedDiv">
</div>
</div>

<script type="text/javascript">
adjustHeightNonAjax();
<%
if ((role.getRoleType() & (Constants.ROLE_TYPE_BUZHANG | Constants.ROLE_TYPE_SHENGCHANFUBUZHANG | Constants.ROLE_TYPE_SHEBEIFUBUZHANG
		| Constants.ROLE_TYPE_ANQUANZONGJIAN)) > 0) {
%>
loadPageSection2('problems_tobe_processed_banzi_section.jsp', 'tobeProcessedDiv', {dateStart:getElementValueByID('dateStart'), dateEnd:getElementValueByID('dateEnd')}, true)
<%
} else if ((role.getRoleType() & (Constants.ROLE_TYPE_ZHUANGZHIZHANG)) > 0) {
%>
loadPageSection2('problems_tobe_processed_zhuangzhiz_section.jsp', 'tobeProcessedDiv', {dateStart:getElementValueByID('dateStart'), dateEnd:getElementValueByID('dateEnd')}, true)
<%
} else {
%>
loadPageSection2('problems_tobe_processed_general_section.jsp', 'tobeProcessedDiv', {dateStart:getElementValueByID('dateStart'), dateEnd:getElementValueByID('dateEnd')}, true)
<%
}
%>

function loadPageSection2(theURL, containerID, data, isShowWaiting,
		theCompleteAct) {
	$.ajax({
		type : 'post',
		url : theURL,
		data : data,
		dataType : 'html',
		success : function(data, state, xmlhttp) {
			var container = document.getElementById(containerID);
			if (container != null) {
				container.innerHTML = data;
				goScript(data);
			}
			
			adjustHeightNonAjax();
		},
		beforeSend : function(xhr) {
			if (isShowWaiting) {
				openWaitingDialog('waitingDialog2');
			}
		},
		complete : function(xmlhttpRequest, textStatus) {
			if (theCompleteAct != null) {
				theCompleteAct();
			}
			closeWaitingDialog('waitingDialog2');
		}
	});
}
</script>
